﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccess;
using TaskManagement.ModelLayer;

namespace TaskManagement.BusinessLayer
{
    public class TaskControler
    {
        private IDBTask dbTask;

        public TaskControler()
        {
            dbTask = new DBTask();
        }

        public IList<Task> SearchTask(Task searchTask)
        {
            return dbTask.SearchTask(searchTask);
        }

        public int CreateTask(Task task)
        {
            return dbTask.CreateTask(task);
        }

        public int DeleteTasks(IList<Task> tasks)
        {
            return dbTask.DeleteTasks(tasks);
        }

        public int UpdateTask(Task task)
        {
            return dbTask.UpdateTasks(task);
        }

        public IList<string> GetAccounts()
        {
            return dbTask.GetAccounts();
        }

        public IList<string> GetTags()
        {
            return dbTask.GetTags();
        }

        public IList<string> GetDeliverys()
        {
            return dbTask.GetDeliverys();
        }

    }
}
